package DMSXL._2023Before.ListNode_;


/*public class removeElements_ {
    public static void main(String[] args) {

    }
}
/*
class ListNode {
    int val;
   ListNode next;
   ListNode() {}
   ListNode(int val) { this.val = val; }
   ListNode(int val, ListNode next) { this.val = val; this.next = next; }
  }

class Solution {
    public ListNode removeElements(ListNode head, int val) {
        ListNode temphead = new ListNode();
        temphead.next = head;
        ListNode temp = temphead;
        while(temp.next != null){
            if(temp.next.val == val){
                temp.next = temp.next.next;
            }
            else {
                temp = temp.next;
            }
        }
        return temphead.next;



    }
}*/